package org.fuys.etp.core.model.event;

import lombok.ToString;
import org.fuys.etp.core.model.res.TpStatusResult;
import org.springframework.context.ApplicationEvent;

/**
 * @projectName: fuys-etp
 * @package: org.fuys.etp.core.model.event
 * @className: EtpAlertEvent
 * @author: WangJing
 * @description: 线程池报警事件
 * @date: 2025/2/8 23:54
 * @version: 1.0
 */

public class EtpAlertEvent extends ApplicationEvent {
    TpStatusResult status;
    String alertType;
    public EtpAlertEvent(Object source, TpStatusResult result,String alertType) {
        super(source);
        status = result;
        this.alertType = alertType;
    }

    public TpStatusResult getStatus() {
        return status;
    }

    public String getAlertType() {
        return alertType;
    }
}
